home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / foundation / NSBundle.h < prev    next >
Text File  |  1994-05-02  |  1KB  |  53 lines

  1. /*    NSBundle.h
  2.     Dynamically loadable code with resources
  3.       Copyright 1993, 1994, NeXT, Inc.
  4.     NeXT, Aug 1993
  5. */
  6.  
  7. #import <foundation/NSArray.h>
  8.  
  9. /* This module is a cover/replacement for the old NXBundle with some foundation conveniences;
  10. */
  11.  
  12. /***************    Class        ***********/
  13.  
  14. @interface NSBundle:NSObject {
  15.     id        _realBundle;
  16.     BOOL    isLoaded;
  17. }
  18.  
  19. + (NSBundle *)bundleWithPath:(NSString *)path;
  20.  
  21. - initWithPath:(NSString *)path;
  22.     /* Path is the path for the bundle itself, e.g. "/NextApps/MyApp/foo.bundle" */
  23.  
  24. + (NSBundle *)mainBundle;
  25.  
  26. + (NSBundle *)bundleForClass:cls;
  27.  
  28. + (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext inDirectory:(NSString *)bundlePath withVersion:(int)version;
  29.     /* Returns nil of that path; ext may be nil */
  30.     
  31. - (NSString *)bundlePath;
  32.  
  33. - classNamed:(NSString *)className;
  34.  
  35. - principalClass;
  36.  
  37. - (void)setBundleVersion:(unsigned)version;
  38.  
  39. - (unsigned)bundleVersion;
  40.  
  41. - (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext;
  42.  
  43. - (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value comment:(NSString *)comment;
  44.  
  45. - (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value comment:(NSString *)comment table:(NSString *)tableName;    /* nil tableName ok for the default */
  46.  
  47. + (void)setSystemLanguages:(NSArray *)languages;
  48.  
  49. + (void)stripAfterLoading:(BOOL)flag;
  50.     /* Default is YES; NO makes bundles easier to debug */
  51.  
  52. @end
  53.